<% remote_form_for(session[:user], :update => "details_view", :url => {:action => "details_save"}) do |f| %>
  <table>
    <tr>
      <td>
        <font class="regulartext">
          <%= f.hidden_field :id %>
          <%= f.text_field :firstname, :size => 10 %>
          <%= f.text_field :lastname, :size => 10 %><br/>
          <%= f.text_field :address, :size => 20 %><br/>
          <%= f.text_field :postalcode, :size => 10 %>
          <%= f.text_field :city, :size => 10 %><br/>
          Tel: <%= f.text_field :tel, :size => 20 %><br/>
          E-post: <%= f.text_field :email, :size => 20 %><br/>
        </font>
      </td>
      <td>
        <font class="regulartext">
          <%= link_to_remote "Avbryt", :update => "details_view", :url => { :action => "details_view", :id => session[:user].id } %><br/>
          <%= submit_tag 'Spara' %>
        </font>
      </td>
    </tr>
  </table>
<% end %>